package com.azier.kapacitor.script.node.nodebind;

import com.azier.kapacitor.script.node.CombineNode;
import com.azier.kapacitor.script.node.Node;

/**
* 1 * @Author: luoj
* 2 * @Date: 2019/11/8 11:27
* 3
*/

/**
Combine this node with itself. The data is combined on timestamp.
**/

/**
将此节点与其自身结合。数据按时间戳合并。
**/
public interface CombineNodeBind extends Node {

    /**
    Combine this node with itself. The data is combined on timestamp.
    **/
    /**
    将此节点与其自身结合。数据按时间戳合并。
    **/
    default CombineNode combine(String...expressions){
        CombineNode nextNode = new CombineNode(expressions);
        this.setNextNode(nextNode);
        nextNode.zetHeadNode(this.getHeadNode());
        return nextNode;
    }

}